home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Super Stacks! / Macworld CD.iso / HyperCard Archives / International / French v1.2.5.1 / Piles principales / Notes sur la version 1.2.5 / card_10710.txt < prev    next >
Text File  |  1989-10-04  |  2KB  |  80 lines

  1. -- card: 10710 from stack: in.5
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: selectedText
  6. ----- HyperTalk script -----
  7. on cleanEnter
  8.   set cursor to watch
  9.   send "mouseUp" to bg btn "voir aussi‚Ķ"
  10. end cleanEnter
  11.  
  12. on cleanExit
  13.   send "mouseup" to bg btn "d√©mo"
  14. end cleanExit
  15.  
  16.  
  17.  
  18. -- part contents for background part 7
  19. ----- text -----
  20. selectedText
  21.  
  22. -- part contents for background part 9
  23. ----- text -----
  24. Nouvelles fonctions HyperTalk
  25. Carte 10 sur 10
  26.  
  27. -- part contents for background part 8
  28. ----- text -----
  29. the selectedText
  30.  
  31. -- part contents for background part 10
  32. ----- text -----
  33. aucun
  34.  
  35. -- part contents for background part 11
  36. ----- text -----
  37. Cette fonction renvoie le texte s√©lectionn√©. En ce sens, elle est synonyme de la fonction "the selection" mais, √† la diff√©rence de cette derni√®re, elle ne peut servir de registre auquel une valeur est affect√©e (par Put). Si rien n'est s√©lectionn√©, la fonction renvoie une cha√Æne vide.
  38.  
  39.  
  40.  
  41. -- part contents for background part 31
  42. ----- text -----
  43. Select
  44. selectedChunk
  45. selectedField
  46. selectedLine
  47.  
  48. -- part contents for background part 17
  49. ----- text -----
  50. --apr√®s ex√©cution des commandes suivantes :
  51. select line 4 of fld "adresse"
  52. put the selectedText
  53.  
  54. --vous obtiendrez un r√©sultat du type :
  55. 20 rue de Londres 75009 Paris
  56.  
  57. --notez la diff√©rence entre the Selection et
  58. --the selectedText :
  59.  
  60. get the selection  -- CORRECT
  61. get the selectedText -- CORRECT
  62. put "Substitution" into selection -- CORRECT
  63. put "Substitution" into selectedText --INCORRECT
  64.  
  65. -- part contents for background part 18
  66. ----- text -----
  67. on selectedTextDemo
  68. --s√©lectionne la 1√®re ligne du champ "Voir aussi",
  69. --affiche la carte de m√™me nom, puis revient :
  70.  
  71.    cleanEnter
  72.    select line 1 of field "voirAussi"
  73.    wait 1 second
  74.    get the selectedText
  75.    visual effect dissolve to black
  76.    go card it
  77.    wait 2 seconds
  78.    go back
  79.    cleanExit
  80. end selectedTextDemo